package com.ruoyi.system.service;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.system.domain.SpokenOrder;
import com.wechat.pay.java.service.payments.jsapi.model.PrepayWithRequestPaymentResponse;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface ISpokenOrderService {

    public List<SpokenOrder> selectList(SpokenOrder order);

    public int insert(SpokenOrder order);

    public Map<String, Object> selectById(Long orderId);

    public SpokenOrder selectByNo(String orderNo);

    public int update(SpokenOrder order);

    public PrepayWithRequestPaymentResponse genPayParam(Long orderId);

    public AjaxResult payCallback(HttpServletRequest request);

    public int cancelOrder(Long orderId);

    public Integer selectOrderCount(Integer status, String startDate, String endDate);

}
